<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta name="GENERATOR" content="PasDoc 0.11.0">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Crispy Plotter Documentation: PlotUtils</title>
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
<h1 class="unit">Unit PlotUtils</h1>
<table class="sections wide_list">
<tr>
<td><a class="section"  href="#%40Description">Description</a></td><td>uses</td><td>Classes, Interfaces, Objects and Records</td><td><a class="section"  href="#%40FuncsProcs">Functions and Procedures</a></td><td>Types</td><td>Constants</td><td>Variables</td></tr></table>
<a name="%40Description"></a><h2 class="description">Description</h2>
<p>
Provides some auxiliary routines (mostly conversion related functions) for plotting related units.</p>
<a name="%40Uses"></a><h2 class="overview">Overview</h2>
<a name="%40FuncsProcs"></a><h3 class="summary">Functions and Procedures</h3>
<table class="summary wide_list">
<tr class="list">
<td class="itemcode"><code>function <b><a   href="PlotUtils.html#ClipRound">ClipRound</a></b>(X: <a   href="ResConst.html#TFloat">TFloat</a>): Integer;</code></td>
</tr>
<tr class="list2">
<td class="itemcode"><code>function <b><a   href="PlotUtils.html#FlattenText">FlattenText</a></b>(Text: String): String;</code></td>
</tr>
<tr class="list">
<td class="itemcode"><code>Function <b><a   href="PlotUtils.html#IntersectRanges">IntersectRanges</a></b>(RL, RR, SL, SR: Integer): Boolean;</code></td>
</tr>
<tr class="list2">
<td class="itemcode"><code>function <b><a   href="PlotUtils.html#MergeColor">MergeColor</a></b>(Col, ColP: TColor; Alpha: Single): TColor;</code></td>
</tr>
<tr class="list">
<td class="itemcode"><code>function <b><a   href="PlotUtils.html#FToStr">FToStr</a></b>(X: <a   href="ResConst.html#TFloat">TFloat</a>): String;</code></td>
</tr>
<tr class="list2">
<td class="itemcode"><code>function <b><a   href="PlotUtils.html#DoublePoint">DoublePoint</a></b>(X, Y: Double): <a   href="PlotConst.TDoublePoint.html">TDoublePoint</a>;</code></td>
</tr>
<tr class="list">
<td class="itemcode"><code>function <b><a   href="PlotUtils.html#FPoint">FPoint</a></b>(X, Y: <a   href="ResConst.html#TFloat">TFloat</a>): <a   href="PlotConst.TFPoint.html">TFPoint</a>;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Functions and Procedures</h3>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="ClipRound"></a><code>function <b>ClipRound</b>(X: <a   href="ResConst.html#TFloat">TFloat</a>): Integer;</code></td>
</tr>
<tr><td colspan="1">
<p>
Clamps and rounds TFloat values, so high TFloat values dont cause overruns:</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="FlattenText"></a><code>function <b>FlattenText</b>(Text: String): String;</code></td>
</tr>
<tr><td colspan="1">
<p>
Remove white space and control characters (e.g. tabs or line breaks).</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="IntersectRanges"></a><code>Function <b>IntersectRanges</b>(RL, RR, SL, SR: Integer): Boolean;</code></td>
</tr>
<tr><td colspan="1">
<p>
Tests, if two intervals intersect each other.     </p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>RL</dt>
<dd>Left border of interval R</dd>
<dt>RR</dt>
<dd>Right border of interval R</dd>
<dt>SL</dt>
<dd>Left border of interval S</dd>
<dt>SR</dt>
<dd>Right border of interval S</dd>
</dl>
<h6 class="description_section">Returns</h6>
<p class="return">Returns true, if the two intervals intersect each other.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="MergeColor"></a><code>function <b>MergeColor</b>(Col, ColP: TColor; Alpha: Single): TColor;</code></td>
</tr>
<tr><td colspan="1">
<p>
Calculate a mixed color between Col and ColP.     Col and ColP will be returned. For Alpha = 0 Col is returned and for Alpha = 1 ColP is returned.</p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>Col</dt>
<dd>Background color</dd>
<dt>ColP</dt>
<dd>Foreground color</dd>
<dt>Alpha</dt>
<dd>Weight factor, between 0 and 1</dd>
</dl>
<h6 class="description_section">Returns</h6>
<p class="return">Depending on the weight factor Alpha, a mixed color between</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="FToStr"></a><code>function <b>FToStr</b>(X: <a   href="ResConst.html#TFloat">TFloat</a>): String;</code></td>
</tr>
<tr><td colspan="1">
<p>
Converts a float value to a string using . as decimal operator.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="DoublePoint"></a><code>function <b>DoublePoint</b>(X, Y: Double): <a   href="PlotConst.TDoublePoint.html">TDoublePoint</a>;</code></td>
</tr>
<tr><td colspan="1">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="FPoint"></a><code>function <b>FPoint</b>(X, Y: <a   href="ResConst.html#TFloat">TFloat</a>): <a   href="PlotConst.TFPoint.html">TFPoint</a>;</code></td>
</tr>
<tr><td colspan="1">
&nbsp;</td></tr>
</table>
<hr noshade size="1"><span class="appinfo"><em>Generated by <a  target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.11.0</a> on 2009-05-27 22:26:19</em>
</span>
</body></html>
